package com.example.explainus;

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.app.Activity;
import android.content.Intent;

public class LogoActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_logo);
		Thread logoTime = new Thread(){
					public void run()
					{
						try
						{
							int logoTimer = 0;
							while(logoTimer < 5000)
							{
								sleep(100);
								logoTimer += 100;
							}
							startActivity(new Intent("com.example.explainus.MAINACTIVITY"));
						} catch (InterruptedException e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
						
						finally
						{
							finish();
						}
						
					}
					
				};
		logoTime.start();
    }
   
}
